#ifndef __KEY_H__
#define __KEY_H__

#include <stdbool.h>

#include "gpio/_gpio.h"

typedef struct 
{
    gpio_t* gpio;
    uint8_t pressed_state;
    volatile bool is_pressed;
} key_t;

bool key_is_pressed(key_t* key);

#endif
